<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<jsp:include page="../common/lib.jsp"></jsp:include>
<SCRIPT language=javascript
	src="<%=basePath%>js/jquery.ztree.all.min.js"></SCRIPT>
<link rel="stylesheet"
	href="<%=basePath%>ztree/css/css/zTreeStyle/zTreeStyle.css"
	type="text/css">
<script src="<%=basePath%>js/system/user.js" type="text/javascript"></script>

</head>
<body>
	<div class="container-fluid">
		<div class="info-center">
			<div class="page-header">
				<div class="pull-left">
					<h4>消息中心</h4>
				</div>
			</div>

			<div class="page-header">用户管理</div>

			<!-- <div class="info-center-title">
					    121212121
					</div> -->

			<div id="qywine" style="display:block;">
				<button class="btn btn-primary btn-sm addBtn" onclick="useradd()">新
					增</button>
				<button class="btn btn-danger btn-sm" onclick="deleteAll()">批量删除</button>
			</div>

			<div class="clearfix"></div>

			<div class="table-margin">
				<table class="table table-bordered table-header" id="example1">
					<thead>
						<tr>
							<th><input type="checkbox" name="allChecked" /></th>
							<th>id</th>
							<th>人名</th>
							<th>密码</th>
							<th>入职时间</th>
							<th>真实姓名</th>
							<th>电话</th>
							<th>头像</th>
							<th>生日</th>
							<th>状态</th>
							<th>地址</th>
							<th>部门</th>
							<th>邮箱</th>
							<th>职务</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>

					</tbody>
				</table>
			</div>
		</div>
		<div class="show-page hidden">
			<ul>
			</ul>
		</div>



		<!--新增页面开始-->
		<div class="modal fade" id="user_add" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">新 增</h4>
					</div>
					<form class="form-horizontal" role="form" action="" method="post"
						id="category_add">
						<div class="modal-body">

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">ID：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control" name="id"
										id="syuserid" style="width: 250px" maxlength="15" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">人名：
								</label>

								<div class="col-sm-9">
									<input type="text" class="form-control" id="syusernameid"
										name="name" style="width: 250px" maxlength="15"
										placeholder="10个汉字以内" />

								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">密码：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="password" id="syuserpassword" style="width: 250px"
										maxlength="15" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">入职时间：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="createtime" id="syusertime" style="width: 250px"
										maxlength="15" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">真实姓名：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="realname" id="syuserrealname" style="width: 250px"
										maxlength="15" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">电话：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="phone" id="syuserphone" style="width: 250px"
										maxlength="15" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">头像：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="camera" id="syusercamera" style="width: 250px"
										maxlength="15" />
								</div>
							</div>


							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">生日：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="birthday" id="syuserbirthday" style="width: 250px"
										maxlength="15" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">状态：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="state" id="syuserstate" style="width: 250px"
										maxlength="15" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">地址：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="address" id="syuseraddress" style="width: 250px"
										maxlength="15" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">部门：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control" name="bm"
										id="syuserbm" style="width: 250px" maxlength="15" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">邮箱：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control"
										name="email" id="syuseremail" style="width: 250px"
										maxlength="15" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right">职务：
								</label>

								<div class="col-sm-9">
									<input type="text" class=" sortNumber form-control" name="zw"
										id="syuserzw" style="width: 250px" maxlength="15" />
								</div>
							</div>

						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default"
								data-dismiss="modal">关闭</button>
							<button type="button" class="btn btn-primary" id="btnsubmit"
								onclick="useraddtj()">提交</button>
						</div>
					</form>

				</div>
			</div>


			
</div>
</div> 

<!--修改页面开始-->
			<div class="modal fade" id="user_update" tabindex="-1" role="dialog"
				aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog">


					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-hidden="true">&times;</button>
							<h4 class="modal-title" id="myModalLabel">修改</h4>
						</div>
						<form class="form-horizontal" role="form" action="" method="post"
							id="userupdate">
							<div class="modal-body">

								<div class="form-group" style="display: none">
									<label class="col-sm-3 control-label no-padding-right">id：
									</label>

									<div class="col-sm-9">
										<input type="text" class="form-control" id="uid"
											name="syusernames" style="width: 250px" maxlength="15"
											placeholder="10个汉字以内" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">用户名：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="syuserName" id="unames" style="width: 250px"
											maxlength="10" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">密码：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="upassword" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">创建时间：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="ucreatetime" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">真实名字：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="urealname" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">电话：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="uphone" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">头像：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="ucamera" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">生日：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="ubirthday" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">状态：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="ustate" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">地址：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="uaddress" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">部门：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="ubm" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">邮箱：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="uemail" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">职务：
									</label>

									<div class="col-sm-9">
										<input type="text" class=" sortNumber form-control"
											name="roledetail" id="uzw" style="width: 250px"
											maxlength="10" />
									</div>
								</div>
							</div>
							<div class="modal-footer">
								<button type="button" class="btn btn-default"
									data-dismiss="modal">关闭</button>
								<button type="button" class="btn btn-primary" id="btnsubmit"
									onclick="userupdatetj()">提交</button>
							</div>
						</form>
					</div>
					<!-- /.modal-content -->
				</div>
			</div>

			<!--单个删除确认对话框-->
			<div class="modal fade" id="user_delete" tabindex="-1" role="dialog"
				aria-labelledby="myModalLabel" aria-hidden="true">


				<!-- data-backdrop="static" 禁止点击弹框后面内容 -->
				<form class="form-horizontal" role="form">
					<div class="modal-dialog modal-sm ">
						<!-- modal-sm 小的  modal-lg 大的 -->
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal"
									aria-hidden="true">&times;</button>
								<h4 class="modal-title" id="myModalLabel">提示信息</h4>
							</div>
							<div class="modal-body" style="text-align: left;">
								<h5>您确定要删除当前信息吗？</h5>
							</div>
							<div class="modal-footer">
								<!-- <button type="button" class="btn btn-default"
								data-dismiss="modal" onclick>取消</button>
 -->
								<button type="button" class="btn btn-primary"
									onclick="userdeltetj()">确认</button>
							</div>
						</div>
						<!-- /.modal-content -->
					</div>
				</form>
				<input type="hidden" id="onedeleteid" />
			</div>


			<!--多个删除确认对话框-->
			<div class="modal fade" id="deleteAll" tabindex="-1" role="dialog"
				aria-labelledby="myModalLabel" aria-hidden="true">
				<form class="form-horizontal" role="form">
					<div class="modal-dialog">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal"
									aria-hidden="true">&times;</button>
								<h4 class="modal-title" id="myModalLabel">提示信息</h4>
							</div>
							<div class="modal-body" style="text-align: left;">
								<h5>您确定要删除选中信息吗？</h5>
							</div>
							<div class="modal-footer">

								<!-- 
                    <button type="button" class="btn btn-default"
                            data-dismiss="modal">取消
                    </button>
                     -->

								<button type="button" class="btn btn-primary"
									onclick="deleteAlltj()">确认</button>
							</div>
						</div>
						<!-- /.modal-content -->
					</div>
				</form>
			</div>
			
			
			
		<!-- 授角色页面 -->
		<div class="modal fade" id="syuserrole-add" tabindex="-1"
			role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">角色任命</h4>
					</div>
					<input type="hidden" id="userid" />
					<form class="form-horizontal" role="form" action="" method="post"
						id="category_add">
						<div class="modal-body">
							<div class="form-group">
								<table class="table table-bordered table-header">
									<tr>
									<thead>
										<th>选择</th>
										<th>角色id</th>
										<th>角色名称</th>
									</thead>
									</tr>
									<tbody id="roleid"></tbody>
								</table>
							</div>
						</div>
					</form>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">取消
						</button>
						<button type="button" class="btn btn-primary"
							onclick="Syuserroleaddtj()">确认</button>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
